﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace SimpleServiceBus.Persistence.NHibernate
{
    public class ThreadStaticSession : ISessionStorage
    {
        [ThreadStatic] private static ISession _session;

        public ISession Session
        {
            get { return _session; }
            set { _session= value; }
        }
    }
}
